#ifndef APPLICATIONSTARTER_H
#define APPLICATIONSTARTER_H

#include <QObject>
#include <QProcess>

class ApplicationStarter : public QObject
{
    Q_OBJECT
    Q_PROPERTY(bool starting READ starting NOTIFY startingChanged())
public:
    explicit ApplicationStarter(QObject *parent = 0);

    bool starting();
private:
    QProcess *process;
    bool s;

signals:
    void startingChanged();

public slots:
    Q_INVOKABLE void start(QString app);
    void processStateChanged();

};

#endif // APPLICATIONSTARTER_H
